<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
    <title>老师主页</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f4;
            margin: 0;
            padding: 0;
        }
        .navbar {
            background-color: #333;
            overflow: hidden;
            padding: 10px 20px;
        }
        .navbar a {
            float: left;
            display: block;
            color: white;
            text-align: center;
            padding: 14px 20px;
            text-decoration: none;
        }
        .navbar a:hover {
            background-color: #ddd;
            color: black;
        }
        .container {
            padding: 20px;
            text-align: center;
        }
        h2 {
            color: #333;
        }
    </style>
</head>
<body>
    <div class="navbar">
        <a href="#">首页</a>
        <a href="${pageContext.request.contextPath}/laoshi_publish_course.jsp">发布课程</a>
        <a href="${pageContext.request.contextPath}/laoshi_my_courses">我的课程</a>
        <a href="${pageContext.request.contextPath}/laoshi_personal_center">个人中心</a>
        <a href="${pageContext.request.contextPath}/logout">退出登录</a>
    </div>
    <div class="container">
        <h2>欢迎老师, <c:out value="${teacher.name}"/>!</h2>
        <p>这是您的专属主页，您可以在这里管理您的课程和学生。</p>
        <!-- 可以在这里添加更多的老师功能链接 -->
    </div>
</body>
</html> 